﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Business.Entities;
using FluentNHibernate;
using NHibernate;

namespace Data.Database
{
    public class UsuarioData
    {
        public static IList<Usuario> GetAll()
        {
            ISessionFactory sessionFactory = SessionFactoryBuilder<Mapeos.PersonaMap>.CreateSessionFactory();
            ISession session = sessionFactory.OpenSession();
            return session.QueryOver<Usuario>().List();
        }
    }
}
